﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


public partial class recharge_area_fill_unicom : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SysCommon.checkUserLogin();
        if (!IsPostBack)
        {          
            String PREFLAG = Request["HidPREFLAG"];
            String PAYNUM = Request["HidPAYNUM"];
            String CHARGE = Request["HidCHARGE"];
            String ItemNo = Request["HidItemNo"];
            String cusNo = Request["HidcusNo"];

            if (Request["HidPREFLAG"] != null)
            {
                if (!HidPREFLAG.Equals("1"))//全球通
                {
                    //显示查询结果     
                    this.LabChargeName.Text = "本期账单";
                    this.LabCharge.Text = PAYNUM;
                }
                else
                { //预付费~1

                    //显示查询结果            
                    this.LabChargeName.Text = "账户余额";
                    this.LabCharge.Text = CHARGE;
                }

                HidPREFLAG.Value = PREFLAG;
                HidPAYNUM.Value = PAYNUM;
                HidCHARGE.Value = CHARGE;
                HidcusNo.Value = cusNo;
                HidItemNo.Value = ItemNo;

                PanPay.Visible = true;

            }
            else
            {
                PanPay.Visible = false;
                this.LabMessage.Text = "操作失败，请重试！";

            }


        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
         //充值前操作                       
                Response.Redirect("paysuccess_unicom.aspx?HidcusNo=" + HidcusNo.Value
                                                    + "&HidItemNo=" + HidItemNo.Value
                                                    + "&PayMoney=" + TexPayMoney.Text);            
    }
}
